/**
 * Copyright (c) 2019 xstgongyi.org
 * All rights reserved.
 */
package org.xstgongyi.eduaid.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.xstgongyi.eduaid.dataobject.StudentBankAccountDO;

/**
 * @author oldcrane<br/>
 * @created 2019-04-11
 */
@Mapper
public interface StudentBankAccountMapper {

	StudentBankAccountDO getById(int id);

	int insert(StudentBankAccountDO bankAccount);

	int update(StudentBankAccountDO bankAccount);

	/**
	 * 列出一名学生在用的、用过的所有银行账号
	 */
	List<StudentBankAccountDO> listByStudent(int studentId);
}
